{assign var=form value=$form->toArray()}

{form action=`$form._action` name=`$form._formname` method=`$form._method` enctype="multipart/form-data"}
<br/>
	<table width="100%" border='0'>
	{foreach from=$form._fields item=field key=cid}
		<tr>
			<td valign='top' style='width:130px;text-align:right;font-weight:bold;padding:2px;'>{$field.label}{if $field.label}:{/if}</td>
			<td style='text-align:left;padding:2px'>{call_input_plugin type=$field.type name=$field.name add_params=$field} {assign var=fname value=$field.name} {if $messages.$fname}<div class='error' style='font-weight:bold' for='{$fname}_id'>{foreach from=$messages.$fname.message item=err}{$err}<br/>{/foreach}</div><br/>{/if}</td>
		</tr>
	{/foreach}
	</table>
<br/>
{/form}
